package com.tuling.nettyWebSocketClient;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.ReentrantLock;

public class WebsocketContext {

    private Semaphore lock;
    private String result;

    public WebsocketContext(Semaphore lock) {
        this.lock = lock;
        this.lock.acquireUninterruptibly();
    }

    public Semaphore getLock() {
        return lock;
    }

    public void setLock(Semaphore lock) {
        this.lock = lock;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
